#ifndef _RSS_UI_BASE_H_
#define _RSS_UI_BASE_H_
#include <mzfc_inc.h>
#include "../util/PacketSender.h"
#include "../util/Rss_DB.h"

class Rss_UI_Base
{
private:
	CMzWndEx* p_Wnd;
	HWND handle;
public:
	virtual void SetHandle(HWND h_wnd)
	{
		this->handle = h_wnd;
		this->p_Wnd = (CMzWndEx*)CMzWndEx::FromHandle(h_wnd);
		AppData::AppHandle = h_wnd;
	}
	HWND GetHandle() { return this->handle; }
	CMzWndEx* GetWnd() { return this->p_Wnd; }
	virtual void OnMzCommand(WPARAM wParam, LPARAM lParam) = 0;
	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam) = 0;
	virtual void Show() = 0;
	virtual ~Rss_UI_Base(){ }
	virtual void OnTimer(UINT_PTR nIDEvent) { }
};
#endif
